﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SqlSugar;
using System.Configuration;

namespace Monk.Site
{
    public class Repository
    {
        private Repository() { }

        public static SqlSugarClient GetInstance()
        {
            string connectionString = ConfigurationManager.ConnectionStrings["Monk"].ToString();
            SqlSugarClient db = new SqlSugarClient(connectionString);

            return db;
        }
    }
}